<!DOCTYPE html>
<html lang="zh-cN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScipt库</title>
    <script src="https://lib.baomitu.com/dayjs/latest/dayjs.min.js"></script>
    <script src="https://lib.baomitu.com/dayjs/1.11.7/locale/zh-cn.min.js"></script>
    <script src="https://lib.baomitu.com/dayjs/1.11.7/plugin/localizedFormat.min.js"></script>
    <script>
        dayjs.extend(window.dayjs_plugin_localizedFormat);
    </script>
</head>
<body>
    <h1>Day.js库</h1>
    <p class="msg"></p>
    <script>
        document.addEventListener("DOMContentLoaded", function(){
            let msg = document.querySelector(".msg");
            msg.innerHTML += dayjs().locale("zh-cn").format("LLLL");
        });
    </script>
</body>
</html>